import request from '@/utils/request'

// 查询未审核文章草稿箱列表
export function listUncheckDraft(query) {
  return request({
    url: '/uncheck/draft/list',
    method: 'get',
    params: query
  })
}

// 查询未审核文章草稿箱详细
export function getUncheckDraft(articleId) {
  return request({
    url: '/uncheck/draft/' + articleId,
    method: 'get'
  })
}

// 新增未审核文章草稿箱
export function addUncheckDraft(data) {
  return request({
    url: '/uncheck/draft',
    method: 'post',
    data: data
  })
}

// 修改未审核文章草稿箱
export function updateUncheckDraft(data) {
  return request({
    url: '/uncheck/draft',
    method: 'put',
    data: data
  })
}

// 删除未审核文章草稿箱
export function delUncheckDraft(articleId) {
  return request({
    url: '/uncheck/draft/' + articleId,
    method: 'delete'
  })
}

// 发布未审核文章草稿箱
export function publishUncheckDraft(articleId) {
  return request({
    url: '/uncheck/draft/publish/' + articleId,
    method: 'post'
  })
}